<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <script>
        var height=window.prompt("体重:","");
        var weight=window.prompt("升高:","");
        var BMI=weight/(height*height);
        if (BMI<18.5)
            alert("过轻");
        else if(BMI>18.5 && BMI<24.99999)
            alert("正常");
        else if(BMI>25 && BMI<27.99999)
            alert("过重");
         else if(BMI>28 && BMI<32)
            alert("肥胖");
        else
            alert("非常肥胖");

    </script>



</body>
</html>